package org.imyy.struts;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class CarAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8659434631086241327L;
	private String vehicleType = "空";
	public String getVehicleType() {
		return vehicleType;
	}
	public void setVehicleType(String vehicleType) {
		this.vehicleType = vehicleType;
	}
	public void getCarColor() throws Exception {
		// TODO Auto-generated method stub
		ServletActionContext.getResponse().getWriter().print("{\"state\":true,\"vehicletype\":\"" + vehicleType + "\",\"code\":200,\"color\":\"red\"}");
	}
}
